package com.example.product_practices.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.product_practices.domain.Questionnaire;
import com.example.product_practices.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Mapper
@Transactional(rollbackFor = Exception.class)
public interface QuestionnaireMapper extends BaseMapper<Questionnaire> {

@Select("select max(id) as id from questionnaire")
       int getId();

}
